#include "Vehicle.h"

Vehicle::Vehicle(string bd, string dv, int input_mpg, float input_cost):brand(bd), 
    drive(dv), mpg(input_mpg), cost(input_cost){};

void Vehicle::bidPrice(){
    int bid = 0;
    cout << "You have some knowledge on this car.\n" << 
        "Give me a price: ";
    cin >> bid;
    if (bid < cost * 1.8)
        cout << "Your price is unfair." << endl;
    else if (bid < cost * 2.0 && bid >= cost*1.8)
        cout << "You are lucky. It's a bargain." << endl;
    else 
        cout << "Enjoy it!" << endl;
    }

void Vehicle::getBasics(){
   cout <<  "Some basics about the car: " << endl;
   cout << "The brand is " << brand << endl;
   cout << "MPG is " << mpg << endl;
   cout << "Drive is " << drive << endl;
}

